package computer;

public class PC {
	CPU cpu;
	
	HardDisk HD;
	
	void setCPU(CPU cpu1) {
		
	
	this.cpu = cpu1;
	}
	void setHardDisk(HardDisk HD1){
		
	this.HD=HD1;
	}
	void show() {
	System.out.println("CPU速度:"+cpu.getSpeed());
	System.out.println("硬盘容量:"+HD.getAmount());
}
                }